/*
 *  Engine.cpp
 *  SypXIPhone
 *
 *  Created by Luv Khemani on 5/14/10.
 *  Copyright 2010 Luv Khemani. All rights reserved.
 *
 */

#include "Engine.h"
#include "Base.h"
#ifdef SYPX_PLATFORM_IPHONE
	#include "CanvasIPhoneGL.h"
	#include "RendererGLES1.h"
#endif
#ifdef SYPX_PLATFORM_WIN32
	#include "CanvasDesktopGL.h"
#endif

namespace SypX
{
	Canvas* Engine::createCanvas()
	{
		#ifdef SYPX_PLATFORM_IPHONE
			return new CanvasIPhoneGL();
		#elif SYPX_PLATFORM_WIN32
			return new CanvasDesktopGL();
		#else
			return 0;
		#endif		
	}
	
	Renderer* Engine::createRenderer()
	{
		#ifdef SYPX_PLATFORM_IPHONE
			return new RendererGLES1();
		#elif SYPX_PLATFORM_WIN32
			//return new CanvasDesktopGL();
		#else
			return 0;
		#endif		
		
	}
	
}